.TH std::promise::promise 3 "2024.06.10" "http://cppreference.com" "C++ Standard Libary"
.SH NAME
std::promise::promise \- std::promise::promise

.SH Synopsis
   promise();                                           \fB(1)\fP \fI(since C++11)\fP
   template< class Alloc >                              \fB(2)\fP \fI(since C++11)\fP
   promise( std::allocator_arg_t, const Alloc& alloc );
   promise( promise&& other ) noexcept;                 \fB(3)\fP \fI(since C++11)\fP
   promise( const promise& other ) = delete;            \fB(4)\fP \fI(since C++11)\fP

   Constructs a promise object.

   1) Default constructor. Constructs the promise with an empty shared state.
   2) Constructs the promise with an empty shared state. The shared state is allocated
   using alloc. Alloc must meet the requirements of Allocator.
   3) Move constructor. Constructs the promise with the shared state of other using
   move semantics. After construction, other has no shared state.
   4) promise is not copyable.

.SH Parameters

   alloc - allocator to use to allocate the shared state
   other - another promise to acquire the state from

.SH Exceptions

   1,2) May throw implementation-defined exceptions.

.SH Example

    This section is incomplete
    Reason: no example

.SH Category:
     * Todo no example
